#pragma once
#include"RBTree.h"
namespace ljw
{
	template<class K>
	class set
	{
		
	public:
		typedef RBTree_iterator<K> iterator;
		struct SetKeyOft
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		pair<iterator,bool> insert(const K& key)
		{
			return _t.insert(key);
		}
		iterator begin()
		{
			
			return _t.begin();
		}
		iterator end()
		{
			return _t.end();
		}
	private:
		RBTree<K, K,SetKeyOft> _t;
	};
}
